﻿<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>搜班_找兴趣班神器,帮助您的孩子全方位发展,素质教育的摇篮</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta content="telephone=no" name="format-detection">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="description" content="搜班是一个本地素质教育机构信息的搜索平台，也是国内较早建立的独立第三方素质教育机构点评平台。搜班不仅为用户提供教育机构信息、亲子活动信息及最新课程优惠等信息服务，同时亦提供在线预约试听、在线报名等O2O（Online To Offline）交易服务。搜班已成为家长为孩子选择兴趣班与亲子活动的必备工具。">
<meta name="keywords" content="搜班,早教,亲子,素质教育,亲子教育,亲子活动,兴趣班">
<meta name="baidu-site-verification" content="6RYdUqwD75">
<link type="image/x-icon" href="__PUBLIC__/sban/images/favicon.ico" rel="shortcut icon">
<link type="image/x-icon" href="__PUBLIC__/sban/images/favicon.ico" rel="icon">
<!--
<script src="hm.baidu.com/hm.js?af0edb11018610a7dcbb075322ec9e94"></script>
<script async="" src="www.google-analytics.com/analytics.js"></script>
-->
<script type="text/javascript" src="__PUBLIC__/sban/scripts/jquery-1.9.1.min.js" ></script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/sban/demo_files/reset.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/sban/demo_files/home.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/sban/style/index.css">
</head>
<body class="">
    <!--div class="sec head text_2" id="head">
        <img src="images/head.png" /> <b class="border"></b>
    </div-->
    <div class="section_wrap section_wrap_logo section_wrap_fixed">
        <b style="height: 130px;" class="placeholder"></b>
        <div class="sec logo"  style=" -webkit-transition: -webkit-box-shadow 500ms;  /* -webkit-box-shadow: 0 5px 15px rgba(0,0,0,.3); */  -moz-transition: -moz-box-shadow 500ms;  -moz-box-shadow: 0 5px 15px rgba(0,0,0,.3);  transition: box-shadow 500ms;  box-shadow: 0 5px 15px rgba(0,0,0,.3);">
            <b class="border"></b>
            <div class="wrap">
                <img src="__PUBLIC__/sban/images/logo.png" style="float: left;">
                <div class="download_wrap">
                    <a href="" class="app-dowaload download-android">
                        <b>Android</b>立即下载
                    </a>
                    <a target="_blank" href="" class="app-dowaload download-iphone">
                        <b>iPhone</b>立即下载
                    </a>
                    <em><a href="#">
                            <img class="er" src="__PUBLIC__/sban/images/erweima.png">
                        </a></em>
                </div>
            </div>
      </div>
    </div>
    <div class="sec feed_list section_wrap_4">
        <b class="border"></b>
        <div class="feed_list" style="height:1300 px;">
            <b class="border"></b>

            <!--优质合作学校-->
            <div class="wrap">
                <h2 id="f_h1">申请成为合作学校</h2>
				<form id="apply_info" action="{{:U('/Center/centerAddApply')}}" method="post">
                <ul>
				    <li>
					    <input class="apply_tit" type="text" readonly="readonly" value="学校名称：" />
						<input class="apply_cont" type="text" name="name" />
					</li>
				    <li>
					    <input class="apply_tit" type="text" readonly="readonly" value="学校地址：" />
						<input class="apply_cont" type="text" name="address" />
					</li>
				    <li>
					    <input class="apply_tit" type="text" readonly="readonly" value="学校校长：" />
						<input class="apply_cont" type="text" name="principal" />
					</li>
				    <li>
					    <input class="apply_tit" type="text" readonly="readonly" value="负责人：" />
						<input class="apply_cont" type="text" name="person" />
					</li>
				    <li>
					    <input class="apply_tit" type="text" readonly="readonly" value="联系电话：" />
						<input class="apply_cont" type="text" name="phone" />
					</li>
				    <li>
					    <input class="apply_tit" type="text" readonly="readonly" value="是否入V：" />
	            		<input type="radio" name="authentication" value="已认证"> 已认证
                    	<input type="radio" name="authentication" value="未认证" checked="checked" > 未认证
						<span style="color:#666666;">申请入V能够使您的信息展示靠前，迎来更多的商机。</span>
					</li>
				    <li style="height: auto;">
					    <input class="apply_tit" type="text" readonly="readonly" value="经营内容：" />
						<textarea class="apply_cont" cols="5" rows="8" name="editor"></textarea>
					</li>
				</ul>

                <!--按钮-->
                <div id="bottom">
						<div id="test" style="color: red;"></div>
                	<input type="button" id="btn1" onclick="onSub1();" value="请成为合作学校">
                    <!--<input type="submit" id="btn1" value="申请成为合作学校"> 
                --></div> 
				</form>
                <!--footer-->
               <p id="phy">
                    ©2014-2015 搜班 <a href="http://www.miitbeian.gov.cn/" target="_blank">京ICP备*********号</a>
                    <br>联系电话：025-52235119    邮箱：3180844748@qq.com    新浪微博：搜班APP    微信公众平台：搜班APP</p>
            </div>
        </div>
		<!--
<script type="text/javascript" src="demo_files/face.js"></script>
<script type="text/javascript" src="scripts/ga.js"></script>
<script type="text/javascript" src="scripts/baidu.js"></script>
<script type="text/javascript" src="demo_files/face.js"></script>
-->
</div>
	 <script type="text/javascript">
	    function addPic(){
			$('#picDiv').append('<div class="clearfix" style="position:relative;height:32px;"><input style="width:280px;position:static;" onchange="checkPic(this)" type="file" name="img[]"/><a href="javascript:();" onclick="javascript:$(this).parent().remove();">移除</a><span class="required picError"></span></div>');
		}
		//提交前执行
		function onSub1(){
			var name = $("input[name='name']").val();
			var address = $("input[name='address']").val();
			var principal = $("input[name='principal']").val();
			var person = $("input[name='person']").val();
			var phone = $("input[name='phone']").val();
			//验证数字和字母
			var checkNum = /^[A-Za-z0-9]+$/;
			//判断用户名不能为空
			if(name == ""){
				$("#test").html("机构名称不能为空!");
				return false;
			}else{
				$("#test").html("");
			}
			//判断地址不能为空
			if(address == ""){
				$("#test").html("地址不能为空!");
				return false;
			}else{
				$("#test").html("");
			}
			//判断校长不能为空
			if(principal == ""){
				$("#test").html("校长不能为空!");
				return false;
			}else{
				$("#test").html("");
			}
			//判断负责人不能为空
			if(person == ""){
				$("#test").html("负责人不能为空!");
				return false;
			}else{
				$("#test").html("");
			}
			//判断联系电话不能为空
			var phone_reg = /^[0-9]*[1-9][0-9]*$/;
			if(phone == "" || !phone_reg.test(phone)){
				$("#test").html("手机号码不能为空或格式错误!");
				return false;
			}else{
				$("#test").html("");
			}
			//调用下面的方法
			var usernames = onUsername();
			if(usernames == "success"){
				$("#test").html("");
			}else{
				$("#test").html("手机号码已存在!");
				return false;
			}
			$("#apply_info").submit();
		}
		function onUsername(){
			var username = $("input[name='phone']").val();
			//var usernames = "";
			$.post("{{:U('Center/username')}}",{username:username},function(data){
				usernames = data;
			});
			return usernames;
		}
		//输入时判断用户名已存在
		function onUserame(){
			var username = $("input[name='username']").val();
			$.post("{{:U('Center/username')}}",{username:username},function(data){
				if(data == "success"){
					$("#test").html("");
				}else{
					$("#test").html("用户名已存在!");
				}
			});
		}
	 </script>
</body>
</html>
